package com.byit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author puyunfeng
 * @since 2019-01-09
 */
@Data
@TableName("app_user_device")
public class AppUserDevice extends Model<AppUserDevice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 设备标识
     */
    @TableField("device_id")
    private String deviceId;
    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;
    /**
     * 设备操作系统
     */
    @TableField("device_system")
    private String deviceSystem;

    /**
     * 登录时间
     */
    @TableField("login_time")
    private Date loginTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
